package com.zz.concurrent.base;

/**
 * Author: zhangzhen
 * DATE: Created in 2018/8/14 22:37
 * Description:
 */
public class Dig {
    private Integer age;

    public Dig(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    @Override
    public boolean equals(Object obj) {
        if(obj == null) {
            return false;
        }
        if(this == obj) {
            return true;
        }
        if(obj instanceof Dig) {
            Dig dig = (Dig) obj;
            if(dig.age == this.age) {
                return true;
            } else {
                return false;
            }
        }
        return false;

    }


}
